package com.my.study.config;

import com.my.study.listener.CustomListener;
import com.my.study.listener.CustomPublisher;
import org.springframework.context.annotation.Bean;

/**
 * @author Carlos
 * @version 1.0.0
 * @date 2022/3/1 22:12
 */
public class PubSubConfig {

    @Bean
    public CustomPublisher customPublisher() {
        return new CustomPublisher();
    }

    @Bean
    public CustomListener customListener() {
        return new CustomListener();
    }

}
